import 'package:flutter/widgets.dart';

import '../bean/message.dart';

class HomeWidget extends InheritedWidget {

  final List<Message> messages = <Message>[];

  HomeWidget({super.key, required super.child});

  static HomeWidget? of(BuildContext context){
    return context.dependOnInheritedWidgetOfExactType();
  }

  @override
  bool updateShouldNotify(covariant InheritedWidget oldWidget) {
    return true;
  }

}
